<template>
  <el-card>
    <el-menu
        v-model="title"
        class="el-menu-demo"
        mode="horizontal"
        default-active='0'
        active-text-color="#f83683"
        @select="handleSelect">
      <el-menu-item v-for="(item,index) in ctTitle" :index="index">{{ item }}</el-menu-item>
    </el-menu>
  </el-card>
  <el-card style="margin-top: 15px;height: 100vh">
    <el-form>
      <el-form :inline="true">
        <el-form-item>
          <el-input style="width: 270px">
            <template #prefix>
              <el-icon>
                <Search/>
              </el-icon>
            </template>
          </el-input>
          <el-button style="margin-left: 15px">搜索</el-button>
        </el-form-item>
        <el-form-item>
          添加时间：
          <el-icon>
            <DCaret/>
          </el-icon>
          总消费：
          <el-icon>
            <DCaret/>
          </el-icon>
        </el-form-item>
        <el-form-item>
          <el-button plain text>最近上课</el-button>
          <el-button text>最近跟进</el-button>
          <el-button text>下次跟进</el-button>
        </el-form-item>
      </el-form>
    </el-form>
    <el-row style="margin-top:15px">
      <el-table style="width: 100%">
        <el-table-column width="auto" align="center" label="用户"></el-table-column>
        <el-table-column width="80px" align="center" label="成交"></el-table-column>
        <el-table-column width="80px" align="center" label="客户类型"></el-table-column>
        <el-table-column width="80px" align="center" label="最近跟进"></el-table-column>
        <el-table-column width="80px" align="center" label="下次跟进"></el-table-column>
        <el-table-column width="80px" align="center" label="客户来源"></el-table-column>
        <el-table-column width="150px" align="center" label="操作"></el-table-column>
      </el-table>
    </el-row>
  </el-card>
</template>

<script setup lang="ts">

import {ref} from "vue";
import {Search, DCaret} from "@element-plus/icons-vue";

const handleSelect = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const ctTitle = ref(['全部客户', '成交客户', '意向客户'])
</script>

<style lang="less" scoped>
.searchContainer {
  width: 270px;
}
</style>

